import 'package:common/common.dart';
import 'package:flutter/material.dart';

import 'global/routes.dart';

class MakerRegistrar extends ModuleRegistrar {
  static BuildType _buildType;

  MakerRegistrar({BuildType buildType}) : super() {
    _buildType = buildType;
  }

  static BuildType get buildType => _buildType;

  @override
  LocalizationsDelegate get localizationsDelegate => null;

  @override
  ModuleRouteManager get routerManager => MachineRoutes();

  @override
  void setBuildType(BuildType buildType) {
    if (_buildType == null) {
      _buildType = buildType;
    }
  }

  @override
  Function(GlobalEvent) get eventHandler => (event) async {};
}
